package com.example.demo.controller;

import com.example.demo.model.ConfigBean;
import com.example.demo.model.Website;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * Created by HUAN169 on 2020/8/7.
 */
@RestController
public class LucyController {

    @Resource
    private ConfigBean configBean;

    @Resource
    private Website website;

    @GetMapping("/luck")
    public String luck()
    {
        return configBean.getNumber() +","+configBean.getUuid()+ "----" + configBean.getMax();
    }

    @GetMapping("/test")
    public String test()
    {
        return website.getName() +","+website.getUrl();
    }
}
